﻿using System;
using System.Collections.Generic;
using MediaController.Server.Core.DataContracts;

namespace MediaController.Server.Core
{
    public class MediaControllerService : IMediaControllerService
    {
        public DirectoryContract GetDirectories(string path)
        {
            return new DirectoryContract(path);
        }

        public void ExtractFile(FileContract fileContract)
        {

        }

        #region IMediaControllerService Members


        public SpecialFolderContract[] GetBaseDirectories()
        {
            return GetSpecialFolders();
        }

        private SpecialFolderContract[] GetSpecialFolders()
        {
            var specialFolderContracts = new List<SpecialFolderContract>();

            specialFolderContracts.Add(new SpecialFolderContract(Environment.SpecialFolder.MyComputer, "My Computer"));

            specialFolderContracts.Add(new SpecialFolderContract(Environment.SpecialFolder.MyDocuments, "My Documents"));

            return specialFolderContracts.ToArray();
        }

        #endregion
    }
}
